<!--
 * @Author: Dagon
 * @Date: 2021-03-25 11:53:52
 * @Description: 实现一个三栏布局左边宽100px右边宽160px，中间部分要自适应并且要优先加载
 *   优先加载： 需要将优先加载的那一栏放在最前面，然后通过order来实现布局排列顺序
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>三栏布局--flex</title>
</head>
<style>
  * {
    padding: 0;
    margin: 0;
  }

  .box2 {
    width: 100%;
    display: flex;
  }

  .middle2 {
    flex: 1;
    height: 100px;
    background-color: bisque;
    order: 2;
  }

  .left2 {
    background-color: aquamarine;
    width: 100px;
    order: 1;
  }

  .right2 {
    background-color: blue;
    width: 160px;
    order: 3;
  }
</style>

<body>
  <div class="box2">
    <div class="middle2"></div>
    <div class="left2"></div>
    <div class="right2"></div>
  </div>
</body>

</html>